function in = flyingRobotResetFcn(in)
% Randomize the position of the flying robot around a circle of radius R
% and the initial orientation of the robot.
R = 15;
t0 = 2*pi*rand();
t1 = 2*pi*rand();
x0 = cos(t1)*R;
y0 = sin(t1)*R;
z0 = R*rand();
phi0 = 2*pi*rand();
psi0 = 0;
in = setVariable(in,'theta0',t0);
in = setVariable(in,'x0',x0);
in = setVariable(in,'y0',y0);
in = setVariable(in,'z0',z0);
in = setVariable(in,'phi0',phi0);
in = setVariable(in,'psi0',psi0);
